﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.DoMain
{
    /// <summary>
    /// 入库/出库主表
    /// </summary>
    public class Other_Warehousing_Head
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int otherheadId { get; set; }
        /// <summary>
        /// 商品信息
        /// </summary>
        [StringLength(500)]
        public string? product_info { get; set; }

        /// <summary>
        /// 类型（出库/入库）
        /// </summary>
        [StringLength(50)]
        public string? type { get; set; }

        /// <summary>
        /// 初始票据号
        /// </summary>
        [StringLength(50)]
        public string? default_number { get; set; }

        /// <summary>
        /// 票据号
        /// </summary>
        [StringLength(50)]
        public string? number { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 供应商Id/客户Id
        /// </summary>
        public int? organ_id { get; set; }
        /// <summary>
        /// 采购/领料-经手人Id
        /// </summary>
        public int? hands_person_id { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public int? creator_id { get; set; }
        /// <summary>
        /// 合计金额
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]  
        public decimal? total_price { get; set; }
        /// <summary>
        /// 合计数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal? total_num { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(1000)]
        public string? remark { get; set; }
        /// <summary>
        /// 附件名称
        /// </summary>
        [StringLength(500)]
        public string? file_name { get; set; }
        /// <summary>
        /// 单据状态(未审核、已审核)
        /// </summary>
        public bool? status { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        [StringLength(50)]
        public string? link_number { get; set; }
        //租户id
        public int? tenant_id { get; set; }
        //删除标记，0未删除，1删除，默认0
        public bool delete_flag { get; set; } = false;
    }
}
